<%@ page contentType="text/html; charset=utf-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
    String path = request.getContextPath();
%>
<HTML>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>单证数据库系统-最权威最齐全的外贸单证平台</title>
        <link href="${pageContext.request.contextPath}/css/index.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/index_left_dh.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/index_2_title.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/index_right_tab.js"></script>



        <STYLE type="text/css">
            .clssMainRoll {
                FILTER: progid:DXImageTransform.Microsoft.Slide(slidestyle=SWAP,Bands=1); CURSOR: pointer
            }
            BODY {
                BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN: 0px; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none
            }
            td{ text-align:center; font-size:12px;}
        </STYLE>
        <SCRIPT language="javascript" src="${pageContext.request.contextPath}/images/image.rollover.v1.html"></SCRIPT>
        <script type="text/javascript">
            function passwordPress(e){
                var val;  
		
                if (!e)   
                {   
                    e = window.event;   
                }   
                if(!e){
	  	
                }
                if (e.keyCode)   
                {   
                    val = e.keyCode;   
                }   
                else if(e.which)    
                {   
                    val = e.which;   
                }   
		
                if(val==13){   
                    login_confirm();
                }   
            }
            function login_confirm() {
                if (document.getElementById("uidtxt").value.replace(/^\s*/, "") == "") {
                    document.getElementById("tsmsg").innerHTML = "用户名不能为空！";
                    document.getElementById("uidtxt").focus();
                    return false;
                }
                if (document.getElementById("pwdtxt").value.replace(/^\s*/, "") == "") {
                    document.getElementById("tsmsg").innerHTML = "密码不能为空！";
                    document.getElementById("pwdtxt").focus();
                    return false;
                }
                document.getElementById("tsmsg").innerHTML = "";
                document.login_.submit();

            }
        </script>
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/dan.ico"/>

    </head>
    <BODY style="text-align: center">
        <div class="page">
            <s:include value="top.jsp"/>
            <!--首页开始-->
            <div class="index">
                <!--首页第一部分开始-->
                <div class="index_1">
                    <div class="index_left">
                        <div class="index_left_top"><span>全部单证分类</span></div>
                        <div class="index_left_cont">
                            <ul>
                                <s:iterator value="catTree"  var="obj" status="u">
                                    <li><a href="${pageContext.request.contextPath}/document/listByGroupId.action?groupid=${obj.group.id}" id="index_nav${u.index}">·${obj.group.name}</a>

                                        <div class="index_left_cont_fudong${u.index}" style="display:none">
                                            <s:iterator value="#obj.catTreeObjlist" var="objlist">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_left_cont_table">

                                                    <tr>
                                                        <th style="width:80px;padding-top:3px;border-bottom:1px solid #D5EBFD; text-align:center" valign="top"><strong><a href="${pageContext.request.contextPath}/document/listByGroupId.action?groupid=${objlist.group.id}">${objlist.group.name}</a></strong></th>
                                                        <s:if test="#objlist.typelist!=null">
                                                            <s:iterator value="#objlist.typelist" var="type">

                                                                <td style="width:400px;border-bottom:1px solid #D5EBFD"> <a href="${pageContext.request.contextPath}/document/findlist.action?document.documentType.id=${type.id}&document.typeName=${type.name}">${type.name}</a></td>
                                                            </s:iterator>
                                                        </s:if> 
                                                    </tr>                     
                                                </table>
                                            </s:iterator>
                                        </div>
                                    </li>
                                </s:iterator>
                            </ul>
                        </div>
                    </div>
                    <div class="left">
                        <TABLE cellSpacing=0 cellPadding=0 width=558 align=center style="border:1px solid #A6C5F8">
                            <TBODY>
                                <TR>
                                    <TD id=IDS_DIV_MAIN_TOP_ROLL_DETAIL width=506><IMG 
                                            class=clssMainRoll height=204 src="images/01.jpg"
                                            width=560 border=0 name=IMG_MAIN_TOP_ROLL_DETAIL></TD>
                                </TR>
                                <TR>
                                    <TD width=505><TABLE cellSpacing=0 cellPadding=0 width=505 align=center>
                                            <TBODY>
                                                <TR>
                                                    <TD vAlign=top height=27><IMG style="CURSOR: hand" 
                                                                                  onclick=MainTopRoll.alterImage(0) 
                                                                                  src="images/a1.gif" border=0 
                                                                                  name=IMGS_MAIN_TOP_ROLL_THUMBNAIL></TD>
                                                    <TD vAlign=top height=27><IMG style="CURSOR: hand" 
                                                                                  onclick=MainTopRoll.alterImage(1) 
                                                                                  src="images/a2.gif" border=0 
                                                                                  name=IMGS_MAIN_TOP_ROLL_THUMBNAIL></TD>
                                                    <TD vAlign=top height=27><IMG style="CURSOR: hand" 
                                                                                  onclick=MainTopRoll.alterImage(2) 
                                                                                  src="images/a3.gif" border=0 
                                                                                  name=IMGS_MAIN_TOP_ROLL_THUMBNAIL></TD>
                                                </TR>
                                            </TBODY>
                                        </TABLE></TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <SCRIPT language=JavaScript><!--var	 
                            MainTopRoll = new xwzRollingImageTrans("IMG_MAIN_TOP_ROLL_DETAIL", "IMGS_MAIN_TOP_ROLL_THUMBNAIL");

                            MainTopRoll.addItem("http://www.lanrentuku.com/",
                            "images/01.jpg","images/a1.gif","images/b1.gif");

                            MainTopRoll.addItem("http://www.lanrentuku.com/",
                            "images/02.jpg","images/a2.gif","images/b2.gif");

                            MainTopRoll.addItem("http://www.lanrentuku.com/",
                            "images/03.jpg","images/a3.gif","images/b3.gif");



                            MainTopRoll.Index =  parseInt('1');MainTopRoll.install();//--></SCRIPT>
                    </div>
                    <div class="index_1_right">
                        <div class="index_1_right_title">
                            <ul>
                                <li class="index_1_right_title_li1">用户登录</li>
                                <li class="index_1_right_title_li2"><a href="${pageContext.request.contextPath}/register.action">免费注册</a></li>
                            </ul>
                        </div>
                        <div class="index_1_right_cont">
                            <s:form action="login" namespace="/" method="post" theme="simple" id="login_" name="login_">
                                <table width="100%" border="0" cellspacing="10" cellpadding="0" style="margin-top:10px;">
                                    <tr>
                                        <td width="31%" align="right">帐&nbsp; 号：</td>
                                        <td width="69%"><input  onkeypress="passwordPress(event)" name="username" id="uidtxt"/></td>
                                    </tr>
                                    <tr>
                                        <td align="right">密&nbsp; 码：</td>
                                        <td><input name="password" type="password"
                                                   id="pwdtxt" onKeyPress="passwordPress(event)"/></td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td><input type="button" onClick="login_confirm()" style="background:url(images/index_login.jpg);width:78px;height:28px; border:0"/><DIV style="COLOR: red;" id="tsmsg"></DIV></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2"><table width="100%%" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px">
                                                <tr>
                                                    <td width="25%" align="right"><input type="radio" style="width:15px;height:15px; border:0;float:right"/></td>
                                                    <td width="39%">记住用户名</td>
                                                    <td width="36%">忘记密码？</td>
                                                </tr>
                                            </table></td>
                                    </tr>
                                </table>
                            </s:form>
                        </div>
                    </div>
                </div>
                <!--首页第一部分结束-->
                <!--首页第二部分开始-->
                <div class="index_2">
                    <div class="index_2_left2">
                        <div class="index_2_left">
                            <div class="index_2_left_title">
                                <ul>
                                    <li><span>产品目录</span></li>
                                    <li><a href="#" id="index_2_left_title_nav1">A</a></li>
                                    <li><a href="#" id="index_2_left_title_nav2">B</a></li>
                                    <li><a href="#" id="index_2_left_title_nav3">C</a></li>
                                    <li><a href="#" id="index_2_left_title_nav4">D</a></li>
                                    <li><a href="#" id="index_2_left_title_nav5">E</a></li>
                                    <li><a href="#" id="index_2_left_title_nav6">F</a></li>
                                    <li><a href="#" id="index_2_left_title_nav7">G</a></li>
                                    <li><a href="#" id="index_2_left_title_nav8">H</a></li>
                                    <li><a href="#" id="index_2_left_title_nav9">I</a></li>
                                    <li><a href="#" id="index_2_left_title_nav10">J</a></li>
                                    <li><a href="#" id="index_2_left_title_nav11">K</a></li>
                                    <li><a href="#" id="index_2_left_title_nav12">L</a></li>
                                    <li><a href="#" id="index_2_left_title_nav13">M</a></li>
                                    <li><a href="#" id="index_2_left_title_nav14">N</a></li>
                                    <li><a href="#" id="index_2_left_title_nav15">O</a></li>
                                    <li><a href="#" id="index_2_left_title_nav16">P</a></li>
                                    <li><a href="#" id="index_2_left_title_nav17">Q</a></li>
                                    <li><a href="#" id="index_2_left_title_nav18">R</a></li>
                                    <li><a href="#" id="index_2_left_title_nav19">S</a></li>
                                    <li><a href="#" id="index_2_left_title_nav20">T</a></li>
                                    <li><a href="#" id="index_2_left_title_nav21">U</a></li>
                                    <li><a href="#" id="index_2_left_title_nav22">V</a></li>
                                    <li><a href="#" id="index_2_left_title_nav23">W</a></li>
                                    <li><a href="#" id="index_2_left_title_nav24">Z</a></li>
                                    <li><a href="#" id="index_2_left_title_nav25">Y</a></li>
                                    <li><a href="#" id="index_2_left_title_nav26">Z</a></li>
                                </ul>
                                       <s:iterator value="enMap" id="column">   
                                          
                                    <div class="index_2_left_title_fudong<s:property value="#column.key"/>" style="display:none">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:747px;z-index:1000; height:auto; background:#ffffff">
                                            <tr>

                                                <s:set name="total" value="#column.value.size"/>   
                                                <s:iterator value="#column.value" status="s">   

<!--                                                    <s:if test="#s.first"><td rowspan="${total}"><s:property value="#column.key"/></td></s:if>   -->


                                                    <td><s:property value="name"/></td>   


                                                </s:iterator>   


                                            </tr>
                                        </table>
                                    </div>
                                </s:iterator>  
                            

                            </div>
                            <div class="index_2_left_cont">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">

                                    <s:iterator value="proList" var="p">
                                        <tr>
                                            <td width="5%" valign="middle" class="index_2_left_table_title">${p.name}</td>

                                            <td width="95%" class="index_2_left_table_cont" style="font-size:12px; line-height:31px;">
                                                <s:iterator value="#p.produceObjlist" var="p1">
                                                    <a href="${pageContext.request.contextPath}/document/findlist.action?document.product.id=${p1.id}"><strong>${p1.name}</strong></a> &nbsp;&nbsp; 

                                                    <s:iterator value="#p1.produceObjlist" var="p2">
                                                        <a href="${pageContext.request.contextPath}/document/findlist.action?document.product.id=${p2.id}">${p2.name}</a>&nbsp; |&nbsp;

                                                    </s:iterator>
                                                    <br/>
                                                </s:iterator>
                                            </td>

                                        </tr>
                                    </s:iterator>

                                </table>
                            </div>
                        </div>
                        <div class="left"><img src="images/index_2_guanggao1.jpg"/></div>
                        <div class="index_2_left" style="margin-top:6px;">
                            <div class="index_2_left_title"><font>出口国家</font></div>
                         <div class="index_2_left_cont">
                               
                                    <div class="index_2_left_cont_1">
                                           <s:iterator value="countryList" var="cc" status="bb"> 
                                        <div class="index_2_left_cont_1_left">
                                            <ul>
                                                <li><strong> <a href="${pageContext.request.contextPath}/document/findlist.action?document.country.id=${cc.id}&document.countryName=${cc.name}">${cc.name}</a></strong></li>
                                                <li><s:iterator value="#cc.list" var="a">
                                                        <a href="${pageContext.request.contextPath}/document/findlist.action?document.country.id=${a.id}&document.countryName=${a.name}">${a.name}</a>&nbsp; |&nbsp; 
                                                    </s:iterator>
                                                </li>
                                            </ul>
                                        </div>
                                     </s:iterator>
                                    </div>
                               

                            </div>
                        </div>
                    </div>
                    <div class="index_2_right">
                        <div class="index_2_right_new">
                            <div class="index_2_right_new_title">
                                <ul>
                                    <li class="index_2_right_new_title_li1" id="index_2_right_new_title_nav1">最新公告</li>
                                    <li class="index_2_right_new_title_li2" id="index_2_right_new_title_nav2">资  讯</li>
                                </ul>
                            </div>
                            <div class="left">
                                <div class="index_2_right_new_cont" id="index_2_right_new_cont_eav1">
                                    <ul>
                                        <li><a href="#">京东独家音像精品大套装</a></li>
                                        <li><a href="#">武汉网友见面会火热报名啦！</a></li>
                                        <li><a href="#">乐加家纺使您的被窝保持32度</a></li>
                                        <li><a href="#">惠普激光打印机全国首发！</a></li>
                                        <li><a href="#">柒牌全场5折，赢巴厘岛5日游</a></li>
                                        <li><a href="#">惠普激光打印机全国首发！</a></li>
                                        <li><a href="#">柒牌全场5折，赢巴厘岛5日游</a></li>
                                        <li><a href="#">信阳南阳两市开通货到付款服务</a>！</li>
                                        <li><a href="#">北京市因雨雪天气配送延迟！</a></li>
                                        <li class="index_2_right_new_cont_li1"><a href="#" style="background:none">更多>></a></li>
                                    </ul>
                                </div>
                                <div class="index_2_right_new_cont" style="display:none" id="index_2_right_new_cont_eav2">
                                    <ul>
                                        <li><a href="#">惠普激光打印机全国首发！</a></li>
                                        <li><a href="#">柒牌全场5折，赢巴厘岛5日游</a></li>
                                        <li><a href="#">信阳南阳两市开通货到付款服务</a>！</li>
                                        <li><a href="#">北京市因雨雪天气配送延迟！</a></li>
                                        <li><a href="#">京东独家音像精品大套装</a></li>
                                        <li><a href="#">武汉网友见面会火热报名啦！</a></li>
                                        <li><a href="#">乐加家纺使您的被窝保持32度</a></li>
                                        <li><a href="#">惠普激光打印机全国首发！</a></li>
                                        <li><a href="#">柒牌全场5折，赢巴厘岛5日游</a></li>
                                        <li class="index_2_right_new_cont_li1"><a href="#" style="background:none">更多>></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="index_2_right_new">
                            <div class="index_2_right_liuyan_title">用户留言</div>
                            <div class="index_2_right_liuyan_cont">
                                <ul>
                                    <li><a href="#">请问我的订单怎么入库？</a></li>
                                    <li><span>咨询者：郭茂秀（中国）</span></li>
                                    <li><a href="#">你们的工作效率真高！</a></li>
                                    <li><span>咨询者：陈朋（台湾）</span></li>
                                    <li><a href="#">你们的工作效率真高！</a></li>
                                    <li><span>咨询者：郭茂秀（中国）</span></li>
                                    <li><a href="#">Helpful info about interna....</a></li>
                                    <li><span>咨询者：jim Gram（美国）</span></li>
                                    <li class="index_2_right_new_cont_li1"><a href="#" style="background:none">更多>></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="right"><img src="images/index_2_bottom_img.jpg"/></div>
                    </div>
                </div>
                <!--首页第二部分结束-->
            </div>
            <!--首页结束-->

            <s:include value="bottom.jsp"/>
        </div>
        <script type="text/javascript">
            function logout(){
                var mainForm=document.getElementById("mainForm");
                mainForm.action="./logout.action";
                mainForm.submit();
            }
        </script>
    </BODY>
</HTML>